package com.sh.demo.qa.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dom4j.Document;
import org.dom4j.io.SAXReader;


public class XmlUtil {

	protected static final Log logger = LogFactory.getLog(XmlUtil.class);
	
	/**
	 * 打印XML文档
	 */
	public static void showXml(String url) throws Exception{
		SAXReader reader = new SAXReader();
		Document doc = reader.read(url);
		logger.debug(doc.asXML());
	}
	
	
}
